#!/bin/bash
export FinishImage="dc01.iotdreamcatcher.net.cn:6443/crowd_funding/mall-portalv2:latest"
export TZ=UTC-8
export TIME_ID=$(date +%Y-%m-%d-%H-%M-%S)
docker login --username="huanghua" -p huanghua dc01.iotdreamcatcher.net.cn:6443
export IMGAE_NAME="${FinishImage}_${TIME_ID}"
echo $IMGAE_NAME
docker build -t $IMGAE_NAME -f ./Dockerfile .
docker tag $IMGAE_NAME $FinishImage
docker push $FinishImage
docker push $IMGAE_NAME
